# -*- coding:utf-8 -*-
# @FileName  :4.模拟自动登录全文小说网.py
# @Time      :2024/8/15 下午1:18
# @Author    :鲁大师
import time
from selenium import webdriver

from selenium.webdriver.common.by import By

bro=webdriver.Edge()
url = 'https://www.bqgui.cc/user/login.html'
def page_login():
        bro.get(url=url)
        time.sleep(1)
        uname = bro.find_element(By.NAME, 'username')

        pwd = bro.find_element(By.NAME, 'password')
        time.sleep(1)
        uname.send_keys('13271838504')
        time.sleep(1)
        pwd.send_keys("root")
        time.sleep(1)
        btn=bro.find_element(By.XPATH,"/html/body/div[5]/div/p[6]/input")
        btn.click()
        time.sleep(1)

        time.sleep(5)



if __name__ == "__main__":


        page_login()
